//
//  ContactManager.h
//  OC6_作业练习
//
//  Created by dllo on 15/11/1.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Contact;

@interface ContactManager : NSObject

@property (nonatomic, retain) NSMutableDictionary *data;

- (id)init;

- (void)addPerson:(Contact *)contact;

- (void)infoAllContact;

- (NSMutableArray *)sortByName:(NSString *)key;

- (NSMutableArray *)searchByPhone:(NSString *)phone;

- (NSMutableArray *)sortByAge;

- (void)deleteByName:(NSString *)name;

- (void)deleteByKey:(NSString *)key;



@end
